
    import request from '@/utils/request'
    // 查询专业管理列表
    export function listProfessionalApi(query) {
    return request({
        url: '/edutation/professional/list',
        method: 'get',
        params: {
            orderByColumn:'proId',
            isAsc:'descending',
            ...query
        }
    })
    }
    // 查询专业管理详细
    export function getProfessionalApi(proId) {
    return request({
        url: '/edutation/professional/' + proId,
        method: 'get'
    })
    }

    // 新增专业管理
    export function addProfessionalApi(data) {
    return request({
        url: '/edutation/professional',
        method: 'post',
        data: data
    })
    }

    // 修改专业管理
    export function updateProfessionalApi(data) {
    return request({
        url: '/edutation/professional',
        method: 'put',
        data: data
    })
    }

    // 删除专业管理
    export function delProfessionalApi(proId) {
    return request({
        url: '/edutation/professional/' + proId,
        method: 'delete'
    })
    }



    // 查询专业与学校关联表列表
    export function listProfessionalSchoolApi(query) {
        return request({
            url: '/edutation/professional/school/list',
            method: 'get',
            params: {
                orderByColumn:'id',
                isAsc:'descending',
                ...query
            }
        })
    }
    // 查询专业与学校关联表详细
    export function getProfessionalSchoolApi(id) {
        return request({
            url: '/edutation/professional/school/' + id,
            method: 'get'
        })
    }

    // 新增专业与学校关联表
    export function addProfessionalSchoolApi(data) {
        return request({
            url: '/edutation/professional/school',
            method: 'post',
            data: data
        })
    }

    // 修改专业与学校关联表
    export function updateProfessionalSchoolApi(data) {
        return request({
            url: '/edutation/professional/school',
            method: 'put',
            data: data
        })
    }

    // 删除专业与学校关联表
    export function delProfessionalSchoolApi(id) {
        return request({
            url: '/edutation/professional/school/' + id,
            method: 'delete'
        })
    }



//     ================================================
    // 查询专业与学校关联表列表
    export function listProfessionalCourseApi(query) {
        return request({
            url: '/edutation/professional/course/list',
            method: 'get',
            params: {
                orderByColumn:'id',
                isAsc:'descending',
                ...query
            }
        })
    }
    // 查询专业与学校关联表详细
    export function getProfessionalCourseApi(id) {
        return request({
            url: '/edutation/professional/course/' + id,
            method: 'get'
        })
    }

    // 新增专业与学校关联表
    export function addProfessionalCourseApi(data) {
        return request({
            url: '/edutation/professional/course',
            method: 'post',
            data: data
        })
    }

    // 修改专业与学校关联表
    export function updateProfessionalCourseApi(data) {
        return request({
            url: '/edutation/professional/course',
            method: 'put',
            data: data
        })
    }

    // 删除专业与学校关联表
    export function delProfessionalCourseApi(id) {
        return request({
            url: '/edutation/professional/course/' + id,
            method: 'delete'
        })
    }


